﻿using System;
namespace 手机项目;

class Program
{
    static void Main()
    {
        Phone[] phones = new Phone[4];
        phones[0] = new Phone("zty", "XiaoMi 88 pro", "199123123");
        phones[1] = new Phone("btk", "XiaoMi 99999 pro", "1301656123");
        phones[2] = new Phone("zty", "iQOO 77777 pro", "1381254623");
        phones[3] = new Phone();

        // phones[0].拥有者="zty";
        // phones[0].型号="XiaoMi 88 Pro";
        // phones[0].号码="19923221895";

        // phones[1].拥有者="btk";
        // phones[1].型号="XiaoMi 99999 Pro";
        // phones[1].号码="13032553545";

        // phones[2].拥有者="zch";
        // phones[2].型号="iQoo 77777 Pro";
        // phones[2].号码="13853321221";

        for (int i = 0; i < phones.Length; i++)
        {
            Console.WriteLine(phones[i].获取信息());
        }

        for (int i = 0; i < phones.Length; i++)
        {
            Console.WriteLine(手机信息中心.获取运营商(phones[i].号码));
        }

    }
}
